.page {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.content {
  padding: 0;
}

/* 科室标题 */
.departmentTitle {
  padding: 20px 16px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  background: white;
  border-bottom: 1px solid #f0f0f0;
}

/* 日期选择区域 */
.dateSection {
  background: white;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.dateHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.monthYear {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.calendarIcon {
  font-size: 18px;
  color: #666;
}

.dateList {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dateItem {
  padding: 20px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #1890ff;
  background-color: #f0f8ff;
  cursor: pointer;
  /* 行高 */
  line-height: 1;
  /* 文字居中 */
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid #e6f7ff;
}

.dateItem:hover {
  background-color: #e6f7ff;
}

.dateItem.selectedDate {
  background-color: #1890ff;
  color: white;
  border-color: #1890ff;
  padding: 20px 5px;
}

/* 医生列表 */
.doctorList {
  background: white;
}

.doctorItem {
  display: flex;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.doctorItem:hover {
  background-color: #f8f9fa;
}

.doctorItem:last-child {
  border-bottom: none;
}

/* 医生头像 */
.doctorAvatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* 医生信息 */
.doctorInfo {
  flex: 1;
  min-width: 0;
}

.doctorName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doctorTitle {
  font-size: 12px;
  color: #666;
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: normal;
}

.doctorDepartment {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.doctorSpecialty {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 预约状态 */
.availabilityContainer {
  display: flex;
  align-items: center;
  margin-left: 12px;
  flex-shrink: 0;
}

.availabilityBtn {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
  text-align: center;
}

.availabilityBtn.available {
  background-color: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.availabilityBtn.available:hover {
  background-color: #bae7ff;
}

.availabilityBtn.unavailable {
  background-color: #fff2f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
}

.availabilityBtn.unavailable:hover {
  background-color: #ffccc7;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .departmentTitle {
    padding: 16px;
    font-size: 16px;
  }
  
  .dateSection {
    padding: 12px;
  }
  
  .dateItem {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .doctorItem {
    padding: 12px;
  }
  
  .doctorAvatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-right: 10px;
  }
  
  .doctorName {
    font-size: 15px;
  }
  
  .doctorTitle {
    font-size: 11px;
  }
  
  .doctorDepartment {
    font-size: 13px;
  }
  
  .doctorSpecialty {
    font-size: 12px;
  }
  
  .availabilityBtn {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 50px;
  }
}

